package cscie160.project;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * Class for generating server-side ATM objects for use by a remote client.
 */
public class ATMFactoryImpl extends UnicastRemoteObject implements ATMFactory {

    public ATMFactoryImpl() throws RemoteException
    {
       super();
    }

    /**
     * Creates and returns an ATM object to be used by a client.
     * @return  The ATM object
     * @throws RemoteException
     */
    public ATM getATM() throws RemoteException
    {
        return new ATMImplementation();
    }
}
